'use strict';

function get_integer_interval_2(number_a, number_b) {
  var result=new Array();  
    if(number_a<number_b){
      for(var n=number_a;n<=number_b;n++){
        if(n%2==0)
        result.push(n);
      }
    }
    else if(number_a>number_b){
      for(var n=number_a;n>=number_b;n--){
        if(n%2==0)
        result.push(n);
      }
    }
    else if(number_a=number_b){
      if(number_a%2==0)
      result.push(number_a);  
    }
  return result;
}

module.exports = get_integer_interval_2;
